#include"Tree.h"
Tree* Treeinit(Tree* head, Typedata x)
{
	assert(head);
	head = (Tree*)malloc(sizeof(Tree));
	if (head == NULL)
	{
		perror("malloc");
		return NULL;
	}
	head->data = x;
	head->left = NULL;
	head->right = NULL;

	return head;
}
void TreeDestory(Tree* head)
{
	assert(head);
	free(head);
	head = NULL;
}